package cn.exrick.xboot.supervisionDepartment.controllerImpl

import cn.exrick.xboot.base.dto.SecurityAdvisorDto
import cn.exrick.xboot.base.service.ISupervisionUserService
import cn.exrick.xboot.core.common.vo.PageVo
import cn.exrick.xboot.core.common.vo.Result
import cn.exrick.xboot.supervisionDepartment.controller.ISupervisionDepartmentController
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.RestController

@RestController
open class SupervisionSecurityAdvisorController : ISupervisionDepartmentController.SecurityAdvisor {

    @Autowired
    private val iSupervisionUserService: ISupervisionUserService? = null

    override fun createSecurityAdvisor(securityAdvisorDto: SecurityAdvisorDto?): Result<Any?>? {

        return iSupervisionUserService!!.createSecurityAdvisor(securityAdvisorDto)
    }

    override fun updateSecurityAdvisor(securityAdvisorDto: SecurityAdvisorDto): Result<Any?>? {

        return iSupervisionUserService!!.updateSecurityAdvisor(securityAdvisorDto)
    }

    override fun removeSecurityAdvisor(ids: Array<out String>?): Result<Any?>? {

        return iSupervisionUserService!!.removeSecurityAdvisor(ids)
    }

    override fun forbiddenSecurityAdvisor(ids: Array<out String>?): Result<Any?>? {

        return iSupervisionUserService!!.forbiddenSecurityAdvisor(ids)
    }

    override fun securityAdvisorList(pageVo: PageVo): Result<MutableMap<String, Any?>?>? {

        return iSupervisionUserService!!.securityAdvisorList(pageVo)
    }
}